package com.ssyt.wxstore.store.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * StoreTicket entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "store_ticket", catalog = "wxstore")
public class StoreTicket implements java.io.Serializable {

	// Fields

	private String id;
	private Integer type;
	private String title;
	private Integer titleType;
	private Integer state;

	// Constructors

	/** default constructor */
	public StoreTicket() {
	}

	/** full constructor */
	public StoreTicket(String id, Integer type, String title, Integer titleType,
			Integer state) {
		this.id = id;
		this.type = type;
		this.title = title;
		this.titleType = titleType;
		this.state = state;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 50)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "type", nullable = false)
	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Column(name = "title", nullable = false, length = 50)
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "title_type", nullable = false)
	public Integer getTitleType() {
		return this.titleType;
	}

	public void setTitleType(Integer titleType) {
		this.titleType = titleType;
	}

	@Column(name = "state", nullable = false)
	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

}